From: Adel Gadllah Date: Mon, 15 Sep 2014 15:32:33 +0000 (+0200) Subject: st-box-layout: Don't report a paint volume when we have no allocation X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2113 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=aa6f352cb06d3ae8940af323f048c8c7886fa0cd;p=gnome-shell.git st-box-layout: Don't report a paint volume when we have no allocation --- diff --git a/src/st/st-box-layout.c b/src/st/st-box-layout.c index 91e93a568..cb4917f20 100644 --- a/src/st/st-box-layout.c +++ b/src/st/st-box-layout.c @@ -495,6 +495,10 @@ st_box_layout_get_paint_volume (ClutterActor *actor, ClutterActorBox content_box; ClutterVertex origin; + /* Setting the paint volume does not make sense when we don't have any allocation */ + if (!clutter_actor_has_allocation (actor)) + return FALSE; + /* When have an adjustment we are clipped to the content box, so base * our paint volume on that. */ if (priv->hadjustment || priv->vadjustment)